package com.it.xiaotao.mode.ChainOfResponsibility;

public class HandlerA  extends Handler {

    @Override
    public void handleRequest(Request request) {
        if (request.getRequestType().equals(RequestType.TYPE_A)) {
            System.out.println("HandlerA处理请求" + request.getName());
        } else if (handler != null) {
            handler.handleRequest(request);
        }
    }
}
